<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.util.*"%>

<%!
    String email;
    String err;
%>

<%
    if ((email=(String)request.getAttribute("email")) == null)
        email = "";

    if ((err=(String)request.getAttribute("error")) == null)
        err = "";
%>

<html>
    <head>
        <%@include file="headtags.html"%>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Distributed IT Help Desk - Register</title>
    </head>

    <body>
        <h1 align="center"><img src="images/heading.png" width="387" height="56" alt="Distributed IT Help Desk" /></h1>
        <form name="register_form" method="post" action="register.jsp">
            <%= err %>
        <table class="content" width ="100%"><tr class="heading"><td align="center">Register</td></tr><tr><td>
                    <table>
                        <tr>
                            <td>Email</td>
                            <td><input type="text" name="email" value="<%= email %>" /></td>
                        </tr>
                        <tr>
                            <td>Password</td>
                            <td><input type="password" name="password1" /></td>
                        </tr>
                        <tr>
                            <td>Confirm Password</td>
                            <td><input type="password" name="password2" /></td>
                        </tr>
                        <tr>
                            <td>First Name</td>
                            <td><input type="text" name="firstName" /></td>
                        </tr>
                        <tr>
                            <td>Last Name</td>
                            <td><input type="text" name="lastName" /></td>
                        </tr>
                        <tr>
                            <td>Phone Number</td>
                            <td><input type="text" name="phoneNumber" /></td>
                        </tr>
                        <tr>
                            <td>Address</td>
                            <td><input type="text" name="address" /></td>
                        </tr>
                        <tr>
                            <td>Zipcode</td>
                            <td><input type="text" name="zip" /></td>
                        </tr>
                        <tr>
                            <td>Support</td>
                            <td><input type="checkbox" name="support"></td>
                        </tr>
                        <tr><td colspan="2"><input type="submit" value="Register" /></td></tr>
                    </table>
    </td></tr></table>
                        </form>
    </body>
</html>
